package com.supermarket.manage.common.dto.ucenter.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-02-29 18:15
 **/
@Data
@ApiModel("AddUserParams:添加用户 数据对象")
public class AddUserParams implements Serializable {

    private static final long serialVersionUID = -7999734808097519995L;

    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    @NotBlank(message = "客户id不能为空")
    private String buyerId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 初始密码
     */
    @ApiModelProperty(value = "初始密码")
    @NotBlank(message = "初始密码不能为空")
    private String password;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色id不能为空")
    private Long roleId;
}
